/** * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Project: Hilmacorp.ai — Web Platform * File: app/[locale]/contact/page.tsx * Description: Contact page — practical information cards and validated contact form */ import type { Metadata } from "next"; import Container from "@/components/Container"; import SectionHeading from "@/components/SectionHeading"; import ContactForm from "@/components/ContactForm"; import { getMessages, isLocale, type Locale } from "@/lib/i18n"; export async function generateMetadata({ params, }: { params: Promise<{ locale: string }>; }): Promise { const { locale } = await params; if (!isLocale(locale)) return {}; const { meta } = getMessages(locale); return { title: { absolute: meta.contact.title }, description: meta.contact.description }; } export default async function ContactPage({ params, }: { params: Promise<{ locale: string }>; }) { const { locale } = await params; const { contact } = getMessages(locale as Locale); const infoCards = [ { title: contact.infoEmailTitle, body: ( contact@spboucher.ai ), }, { title: contact.infoResponseTitle, body: contact.infoResponse }, { title: contact.infoLanguagesTitle, body: contact.infoLanguages }, ]; return ( <>
{infoCards.map((card) => (

{card.title}

{card.body}

))}
); }